package io.framework.modules.air.dao;

import io.framework.common.dao.BaseDao;
import io.framework.modules.air.entity.AirDayNumberEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 优良天数统计
 *
 * @author Gujq email
 * @since 1.0.0 2020-05-21
 */
@Mapper
public interface AirDayNumberDao extends BaseDao<AirDayNumberEntity> {

    List<AirDayNumberEntity> youLiangNumber(Map<String, Object> params);

    List<AirDayNumberEntity> checkData(@Param("type") Integer type, @Param("month") String month);

    /**
     * 根据时间 month 2020-04 删除数据
     * @param params
     * @return
     */
    int deleteInfoByDate(Map<String,Object> params);

}